
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE3 {
	font-size: 12px;
	color: #435255;
}

.STYLE4 {
	font-size: 12px
}

.STYLE5 {
	font-size: 12px;
	font-weight: bold;
}
-->
</style>
<style type="text/css">
body {
	margin: 0px;
	padding: 0px;
}

body,h2,div,span,li {
	font-size: 12px;
}

.title01,.title02 {
	color: #fff;
	font-weight: bold;
}

#DoorP {
	border: 1px solid #eee;
	width: 144px;
	padding: 0px;
	background: #fff;
}

h2 {
	text-align: center;
	margin: 0px;
	padding: 0px;
	line-height: 22px;
}

.title01 {
	width: 100%;
	height: 25px;
	background: #00ccff;
	cursor: pointer;
}

.title02 {
	width: 100%;
	height: 25px;
	background: #99cc00;
	cursor: pointer;
}

.content {
	background: #ffffff;
	border-bottom: 2px solid #fff;
	overflow: hidden;
	color: #666;
	padding-left: 4px;
	padding-right: 4px;
	line-height: 18px;
}

.content a:link,.content a:visited {
	color: #666666;
	text-decoration: none;
}

.content a:hover {
	color: #FF6600;
	text-decoration: underline;
}
</style>

</head>

<body leftmargin="0">
	<div id="DoorP">
	<%=session.getAttribute("treescript") %>
	</div>
	<script type="text/javascript">
var onum=0;// 设置初始打开的层序号
var closeState=new Array();
var ch=new Array();
function $(id){if(document.getElementById(id)){return document.getElementById(id);}else{alert("没有找到!")}}
function $tag(id,tagName){return $(id).getElementsByTagName(tagName)}
var Ds=$tag("DoorP","div");
var Ts=$tag("DoorP","h2");
if(Ds.length != Ts.length){alert("初始化失败!");}
function showMe(Cid,Oid){var h=parseInt(Ds[Cid].style.height);var h2=parseInt(Ds[Oid].style.height);var dH=ch[Oid];if(h>0){h=h-Math.ceil(h/3);Ds

[Cid].style.height=h+"px";};if(h2<dH){h2=h2+Math.ceil((dH-h2)/3);Ds[Oid].style.height=h2+"px";};if(h<=0&&h2>=dH){clearTimeout(closeState[Cid]);return

false;};closeState[Cid] = setTimeout("showMe("+Cid+","+Oid+")");}
for(var i=0;i<Ds.length;i++){
ch[i]=Ds[i].offsetHeight;
if(i==onum){Ds[i].style.height=ch[i]+"px";Ts[i].className="title01";}else{Ds[i].style.height="0px";Ts[i].className="title02";}
Ts[i].value=i;
Ts[i].onclick=function(){if(onum==this.value){return false;};
Ts[onum].className="title02";
Ts[this.value].className="title01";
for(var i=0;i<closeState.length;i++){clearTimeout(closeState[i]);}
showMe(onum,this.value);
onum=this.value;
}
}
</script>

</body>
</html>
